package org.lgl.goods;

import org.lgl.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author lgl
 * @date 2022/2/24 16:11
 */
@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages = "org.lgl.goods.dao")
@ComponentScan(basePackages = {"org.lgl.common", "org.lgl.goods"})
public class GoodsServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(GoodsServerApplication.class, args);
    }

    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
